package cn.edu.guet.service.login;

import cn.edu.guet.bean.login.ToEmail;

import javax.mail.Session;
import javax.mail.internet.MimeMessage;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.awt.*;
import java.io.IOException;


public interface FeaturesService {

    void setBackground(Graphics g);
    String setRandom(Graphics2D g, String... createTypeFlag);
    String createRandomChar(Graphics2D g, String baseChar);
    void  getCode(HttpServletRequest request, HttpServletResponse response) throws IOException;

    void sendEmail(String mailname, String content) ;
    void commonEmail(ToEmail toEmail);
}
